﻿using Prime.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Prime.Controllers
{
    
    public class HomeController : Controller
    {
        private LearningDbEntities db = new LearningDbEntities();
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Field(int? id)
        {
            int? a = id;
            ViewBag.FieldId = id;
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public ActionResult Course(int? id)
        {
            ViewBag.CourseId = id;
            return View();
        }

        public ActionResult Lesson(int? id)
        {
            ViewBag.LessonId = id;
            return View();
        }
        public ActionResult Home(int? id)
        {
            return View();
        }
    }
}